<script type="text/javascript">
$(document).ready(function() {
	deleteRecord();
});
</script>


<div class="delete-site">

<div class="delete-asked">Czy na pewno chcesz usunąć semestr 
<?php 
	$i=0;
	foreach( $this->semesters as $semester ) : 
 		 echo '<span class="bold">'."\"".$semester['designation']."\"".'</span>'; 
 		if( $i > 0 )
 			echo ', ';
 		$i++;
	endforeach; 
?> ? </div><!-- #delete-asked -->


<div class="delete-info">
	<span class="attention">UWAGA! </span> Naciśnięcie przycisku "Tak, usuń rekord" spowoduje bezpowrotne usunięcie rekordu w bazie danych.
	<br />Aby anulować operację usuwania naciśnij przycisk "Anuluj usuwanie".
</div><!-- #delete-info -->


<form action="<?php echo $this->url(array('controller'=>'semester','action'=>'delete', 'module'=>'technical')); ?>" method="post">

<?php 
$semester = $this->semesters[0];
?>
	<input type="hidden" name="id" value="<?php echo $semester['id']; ?>" />
	<input type="hidden" name="designation" value="<?php echo $semester['designation']; ?>" />
	<input type="submit" name="del" value="Tak, usuń rekord" />
	<input type="submit" name="del" value="Anuluj usuwanie" />
</form> 

</div><!-- #delete-site -->


	
	